import $http from '../../utils/request';


//获取用户并分页，搜索
export const ddStrPager = (query: any, d: any) => {
    let url = `pager?pageNum=${query.pageIndex}&pageSize=${query.pageSize}`;
    url += `&dd_id=${d.dd_id}&dd_hao=${d.dd_hao}&dd_date=${d.dd_date}&dd_zf=${d.dd_zf}&dd_name=${d.dd_name}&dd_ip=${d.dd_ip}&dd_xxip=${d.dd_xxip}&dd_phone=${d.dd_phone}&dd_qq=${d.dd_qq}`
    return $http({
        url: "Dd/"+url,
        method: 'get'
    });
};

//添加/修改图片
export const file_ = (form_data: any) => {
    return $http.post("upfile/files", form_data, {
        headers: {
            'Content-Type': 'multipart/form-data',
        },
    });
};

//添加评论
export const addPl = (p: any) => {
    return $http.post("P/", p)
}